package com.mac.hosp_pre.admin.model.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 数据字典
 *
 * @author mac
 */
@Data
@Schema(name = "数据字典")
public class DictRespDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


    @Schema(description = "上级id")
    private Long parentId;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "值")
    private String val;

    @Schema(description = "编码")
    private String dictCode;

    @Schema(description = "是否包含子节点")
    private boolean hasChildren;

}